package com.xmy.cultivate.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xmy.cultivate.entity.views.StudyPlan;
import com.xmy.cultivate.mapper.StudentFaceManyDetailMapper;
import com.xmy.cultivate.service.IFinancialDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FinancialDataServiceImpl implements IFinancialDataService {
    @Autowired
    @Lazy
    StudentFaceManyDetailMapper studentFaceManyDetailMapper;


    @Override
    public List<StudyPlan> getStudyPlanList(String yearPart, String quarterNum, String type, String enterOrFollow, String schoolId) {
        return studentFaceManyDetailMapper.getStudyPlanList(yearPart, quarterNum, type, enterOrFollow, schoolId);
    }

    @Override
    public IPage<StudyPlan> getStudyPlanDetails(IPage<?> page, String yearPart, String quarterNum, String teacherId, String enterOrFollow, String enterOrFollowState, String gradeId, String schoolId) {
        return studentFaceManyDetailMapper.getStudyPlanDetails(page, yearPart, quarterNum, teacherId, enterOrFollow, enterOrFollowState, gradeId, schoolId);
    }

    @Override
    public List<StudyPlan> getStudyPlanTeamList(String yearPart, String quarterNum, String enterOrFollow, String schoolId, String classify, String trackType, String teamId) {
        return studentFaceManyDetailMapper.getStudyPlanTeamList(yearPart, quarterNum, enterOrFollow, schoolId, classify, trackType, teamId);
    }

    @Override
    public IPage<StudyPlan> getStudyPlanTeamDetails(IPage<?> page, String yearPart, String quarterNum, String teacherId, String enterOrFollow, String enterOrFollowState, String gradeId, String schoolId, String classify, String trackType, String teamId) {
        return studentFaceManyDetailMapper.getStudyPlanTeamDetails(page, yearPart, quarterNum, teacherId, enterOrFollow, enterOrFollowState, gradeId, schoolId, classify, trackType, teamId);
    }
}
